package com.zp.drug.service;


import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;
import com.zp.drug.entity.DrugImportDetail;
import com.zp.drug.entity.bo.DrugImportDetailBo;
import com.zp.drug.entity.bo.DrugImportMasterBo;
import com.zp.drug.entity.vo.DrugImportDetailVo;

import java.util.Collection;
import java.util.List;

/**
 * 药品入库明细Service接口
 *
 * @author zhang peng
 * @ date 2023-07-05
 */
public interface IDrugImportDetailService {

    /**
     * 查询药品入库明细
     */
    DrugImportDetailVo queryById (String id);

    /**
     * 查询药品入库明细列表(分页)
     */
    TableDataInfo<DrugImportDetailVo> queryPageList (DrugImportDetailBo bo, PageQuery pageQuery);

    /**
     * 查询药品入库明细列表(不分页)
     */
    List<DrugImportDetailVo> queryList (DrugImportDetailBo bo);

    /**
     * 修改药品入库明细
     */
    Boolean insertByBo (DrugImportDetailBo bo);

    /**
     * 修改药品入库明细
     */
    Boolean updateByBo (DrugImportDetailBo bo);

    /**
     * 校验并批量删除药品入库明细信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);

    List<DrugImportDetail> batchDrugImportInfo (DrugImportMasterBo bo);
}
